<template>
    <div  class="menu">
    <el-menu
    class="el-menu-vertical-demo"
    background-color="#ffffff"
    :default-openeds="state.opends"
    router
    >
        <el-sub-menu index="1">
            <template #title>
                会员管理
            </template>
                <el-menu-item index="/adminCenter/activateAccountManage">
                    激活审核
                </el-menu-item>
                <el-menu-item index="/adminCenter/VIPManage"> 
                    VIP审核
                </el-menu-item>
                <el-menu-item index="/adminCenter/nicknameManage"> 
                    昵称审核
                </el-menu-item>
        </el-sub-menu>
         <el-sub-menu index="2">
            <template #title>
                试卷管理
            </template>
                <el-menu-item index="/adminCenter/jointPaperManage">
                    联考卷审核
                </el-menu-item>
                <el-menu-item index="/adminCenter/generalPaperManage">
                    非联考卷审核
                </el-menu-item>
        </el-sub-menu>          
         <el-sub-menu index="3">
            <template #title>
                题目管理
            </template>           
                <el-menu-item index="/adminCenter/jointPaperQuestionManage" disabled>                     
                    联考题审核    
                </el-menu-item>
                <el-menu-item index="/adminCenter/generalPaperQuestionManage" disabled>                
                    非联考题审核
                </el-menu-item>
                <el-menu-item index="/adminCenter/notPaperQuestionManage">   
                    单题录入审核
                </el-menu-item>
        </el-sub-menu>
        <el-sub-menu index="4">
            <template #title>
                反馈管理
            </template>           
                <el-menu-item index="/adminCenter/generalFeekbackManage">
                    建议反馈
                </el-menu-item>
                <el-menu-item index="/adminCenter/questionFeedbackManage">                
                    题目反馈
                </el-menu-item>
                <el-menu-item index="/adminCenter/guidePaperFeedbackManage">   
                    导学案反馈
                </el-menu-item>
        </el-sub-menu>
             <el-sub-menu index="5">
            <template #title>
                捐款管理
            </template>           
                <!-- <el-menu-item index="/adminCenter/withdrawLogManage">
                    提现
                </el-menu-item> -->
                <el-menu-item index="/adminCenter/rechargeLogManage">                
                    捐款
                </el-menu-item>
                
        </el-sub-menu>
    </el-menu>
</div>
</template>
  
<script setup>
    import {onMounted,  reactive, toRefs, ref } from 'vue'
    import { useRoute, useRouter } from 'vue-router'
    const state = reactive({
        opends: ['1', '2', '3']
    })
    const emit=defineEmits(['submit'])
    const handleSubmitButton=()=>{
    //通知组件上的自定义submit事件执行
    emit('submit')
    }
    
    const router = useRouter()
    const props = defineProps({
      menu_list: Array,
    });
    const SelectKnowledge = (id)=> {
        router.push({path:'/getQuestionsByKnowledgepoint', query:{ id: id}})
        
        // state.select_knowledge_id = id
    }
</script>

<style scoped>
    .menu{
        display: flex;
        flex-flow: column nowrap;
        width: 200px;
        overflow: hidden;
        background-color: #fcf2e6;
    }
    span{
        font-size: 10x;
        color: #000;
    }
    a{
        text-decoration: none;
        color:#333;
        font-family:sans-serif;
        font-size: 12px;
    }
</style>